<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		div {float: left;}
		#pink {	width: 180px;
			    height: 100px;
			    background-color: pink}
		#red {	width: 180px;
			   height: 100px;
			   background-color: red;}
		#red:target,#pink:target {
			background-color: gold;}
	</style>
</head>
<body>
	<a href="#pink">粉色</a>
	<a href="#red">红色</a><br>
	<div id="pink"></div>
	<div id="red"></div>
</body>
</html>
